/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package modele;

import java.util.*;

public class Spe implements Comparable <Spe>{
    String nom;
    Collection <Med> lesMeds = new TreeSet <Med> ();
    public Spe(String nom){
        this.nom=nom;
       
    }
        public void addMed(Med m){
        lesMeds.add(m);
    }
    public String getNom(){return nom;}
    public Collection getLesMeds() {
        return lesMeds;
    }
    
    public int compareTo(Spe s)  {
        return nom.compareTo(s.nom);
    }
    
}

